package cn.kduck.code.generate;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "kduck.code.ai")
public class AiProperties {

    /**
     * 是否启用AI能力，默认为false
     */
    private boolean enabled;
    /**
     * 语言模型的授权KEY
     */
    private String apiKey;
    /**
     * 语言模型的接口地址
     */
    private String apiUrl;
    /**
     * 语言模型的模型名称
     */
    private String model;

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

}
